<template>
  <!-- 顶部 -->
  <AppNavbar />

    <!-- 头部 -->
    <AppHeader />
      <appHeaderSticky />
    <main class="app-body">
      <RouterView />
    </main>
    <!-- 底部 -->
    <AppFooter />
</template>

<script>
import AppNavbar from '@/components/app-navbar.vue'
import AppHeader from '@/components/app-header.vue'
import AppFooter from '@/components/app-footer.vue'
import appHeaderSticky from '@/components/app-header-sticky'
import { useStore } from 'vuex'
export default {
  name: 'LayoutPage',
  components: {
    AppNavbar,
    AppHeader,
    AppFooter,
    appHeaderSticky
  },
  setup () {
    const store = useStore()
    store.dispatch('category/getList')
  }
}
</script>
<style scoped lang="less">
.app-body {
  min-height: 600px;
}
</style>
